{% extends "personal_center/base.html" %}
{% load state_display %}

{% block page_link %}
    <link rel="stylesheet" href="../../static/system_setup/css/style.css">
    <link rel="stylesheet" type="text/css" href="../../static/personal_center/css/index.css">
    <script type="text/javascript" src="../../static/personal_center/js/index.js"></script>
    <link rel="stylesheet" href="../../static/forum/jqueryDatePicker/font_file.css">
    <link rel="stylesheet" href="../../static/forum/jqueryDatePicker/index.css">
{% endblock %}


{% block style %}
    <style>
        .add_class {
            background: #1E90FF;
        }
        .tab_top {
            height: 40px;text-align: center;display: inline-block;cursor: pointer;padding-top: 5px;padding-left: 2%;
        }
        tr th {
            background-color: #f2f3f1;
        }
        option {
            font-size: 14px;
        }
        .shade {
            position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(36, 36, 36, 0.5);display: none;z-index: 10000;
        }
        .cancellation {
            width: 200px;height: 35px;border: #F5F5F5 solid 1px;background: #F5F5F5;letter-spacing: 7px;text-align: center;
        }
        .cancellation:hover {
            background: #cfcfcf;
        }
        .confirm-leval {
            width: 200px;height: 35px;border: #2db7f5 solid 1px;background: #2db7f5;letter-spacing: 7px;text-align: center;margin-left: 10px;color: white;
        }
        .confirm-leval:hover {
            background: #0c6fd9;
        }
        .search-action {
            width: 100px;height: 30px;border-radius: 3px;background: #2db7f5;border: #2db7f5 solid 1px;color: white;letter-spacing: 6px;float: right;font-size: 14px;margin-top: 2.5px;
        }
        .wrap{
            line-height: 40px;height: 35px;border: 1px solid #0d8ddb;width: 300px;margin-top: 2.5px;display: flex;transition: border-color .2s;border-radius: 4px;margin-right: 10px;
        }
        .wrap:hover{
            border-color: #c0c4cc;
        }
        .wrap:active{
            border-color: #66b1ff;
        }
        .wrap.active{
            border-color: #66b1ff;
        }
        .wrap > div{
            flex: 1;padding: 0 10px;display: flex;cursor: pointer;
        }
        .wrap .ali-iconfont{
            display: inline-block;width: 20px;text-align: center;margin-right: 5px;
        }
        .wrap-l-starTime, .wrap-l-endTime{
            display: flex;justify-content: center;align-items: center;
        }
        .wrap [name="startTime"], .wrap [name="endTime"]{flex: 1;width: 100%;height: 95%;}
        .wrap [name="startTime"], .wrap [name="endTime"], .wrap [name="startTime"]:focus, .wrap [name="endTime"]:focus{border: none;outline: none;cursor: pointer;}
    </style>
{% endblock %}


{% block right_content %}
    <div style="width: 100%;height: 100%;background: white;">
        <div class="headline" style="border-bottom: #cfcfcf solid 1px;">
            <div style="width: 100%;height: 40px;font-size: 0;padding-right: 15px;padding-top: 2.5px;">
                <div style="width: 150px;height: 35px;border-bottom: #0d8ddb solid 2px;font-size: 14px;text-align: center;float: left;line-height: 30px;color: #0d8ddb;cursor: pointer;" onclick="window.location.href='/medical-ethics/TopicRegistrationExport.html'">
                    议题登记
                </div>
                <div style="width: 150px;height: 35px;font-size: 14px;text-align: center;float: left;line-height: 30px;cursor: pointer;" onclick="window.location.href='/medical-ethics/SummaryOfficialDocuments.html'">
                    公文汇总
                </div>

                <button class="search-action">
                    搜索
                </button>
                <div style="height: 30px;margin-left: 20px;font-size: 14px;float: right;">
                    <div class="wrap" style="height: 30px;">
                        <div class="wrap-l">
                            <i class="ali-iconfont ali-iconshizhong" style="margin-top: -7px;"></i>
                            <div class="wrap-l-starTime">
                                <input name="startTime" id="startTime" type="text" placeholder="开始日期" autocomplete="off">
                            </div>

                        </div>
                        <div class="wrap-r">
                            <i class="ali-iconfont ali-iconshizhong" style="margin-top: -7px;"></i>
                            <div class="wrap-l-endTime">
                                <input name="endTime" id="endTime" type="text" placeholder="结束日期" autocomplete="off">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div id="my_application" style="width: 100%;height: 95.3%;overflow: auto;background-color: white;">
            <div class="right-box" style="width: 100%;height: 100%;margin-top: 0;">
                <div style="height: 100%;width: 100%;overflow: auto;border-bottom: #cccccc solid 1px;background-color: white;">
                    <section class="grid-main" style="height: 100%;">
                        <table id="main_table"></table>
                    </section>
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block script %}
    <script src="../../static/personnel/js/jquery-1.11.1.min.js"></script>
    <script src="../../static/forum/jqueryDatePicker/moment.js"></script>
    <script src="../../static/forum/jqueryDatePicker/datePicker.min.js"></script>
    <script src="../../static/administrative/layDate-v5.0.9/laydate/laydate.js"></script> <!-- 改成你的路径 -->
    <script>
        window.onload = function () {
            document.getElementById("loading").style.display = "none";
            document.getElementById("personage").className = "add_class";
            document.getElementById("sponsor").className = "add-nav-active";
            GetData('', '')
        };

        lay('#version').html('-v' + laydate.v);
        //执行一个laydate实例
        laydate.render({
            elem: '#start_time', //指定元素
            type: 'date',
            format: 'yyyy-MM-dd'
        });
        //执行一个laydate实例
        laydate.render({
            elem: '#end_time', //指定元素
            type: 'date',
            format: 'yyyy-MM-dd'
        });

        $('.wrap').on('click', function () {
            var _this = this;
            var reportTimeType = 4;
            var double = true;
            if(!$(this).next('[name="datePicker"]').length) {
                $(this).after("<div class='datePicker-x' name='datePicker' style='position: fixed;z-index: 1000;background: white;'></div>");
                    datePicker = $('.datePicker-x').datePicker({
                        reportTimeType: reportTimeType, // 4代表小时、5代表天、6代表周、7代表月、8代表季、9代表年
                        startDom: $(_this).find('input[name="startTime"]'),  // 开始时间要赋值的DOM元素
                        endDom: $(_this).find('input[name="endTime"]'),  // 结束时间要赋值的DOM元素
                        format: 'YYYY-MM-DD',
                        fastTime: fastTime[double][reportTimeType], // 快速选择的时间
                        isFast: true,   // 是否显示快速选择的选项
                        isDouble: double,   // 是否双选择的日历
                        disabledDate: false,    // 是否禁用以后的时间
                        yes: function (startTime, endTime) {    // 成功赋值前的回调可改变赋值的时间格式
                        },
                    });
            }else {
                if($(this).next('[name="datePicker"]').hasClass('hide')) {
                    $(this).next('[name="datePicker"]').removeClass('hide');
                    datePicker.render();
                }else {
                    $(this).next('[name="datePicker"]').addClass('hide');

                }
            }
        });

        {#function GetData(search_start_time, search_end_time) {#}
        const gridManagerName = "test",
            TYPE_MAP = {1: "HTML/CSS", 2: "nodeJS", 3: "javaScript", 4: "前端鸡汤", 5: "PM Coffee", 6: "前端框架", 7: "前端相关"},
            GM_PUBLISH_METHOD_MAP = {
                init: {key: "init", relyInit: !1, title: "初始化", code: 'demo1.initGM(document.querySelector("table"));'},
                get: {key: "get", relyInit: !0, title: "获取表格的实时配置信息", code: `GridManager.get('${gridManagerName}');`},
                version: {key: "version", relyInit: !1, title: "获取当前GridManager的版本号", code: "GridManager.version;"},
                getLocalStorage: {
                    key: "getLocalStorage",
                    relyInit: !0,
                    title: "获取表格用户记忆",
                    code: `GridManager.getLocalStorage('${gridManagerName}');`
                },
                resetLayout: {
                    key: "resetLayout",
                    relyInit: !0,
                    title: "重置表格布局",
                    code: `GridManager.resetLayout('${gridManagerName}', '800px', '500px');`
                },
                clear: {
                    key: "clear",
                    relyInit: !0,
                    title: "清除表格记忆数据",
                    code: `GridManager.clear('${gridManagerName}');`
                },
                getTableData: {
                    key: "getTableData",
                    relyInit: !0,
                    title: "获取指定tr所使用的数据",
                    code: `GridManager.getTableData('${gridManagerName}');`
                },
                getRowData: {
                    key: "getRowData",
                    relyInit: !0,
                    title: "获取指定tr所使用的数据",
                    code: `GridManager.getRowData('${gridManagerName}', document.querySelector("table[grid-manager=${gridManagerName}] tbody tr"));`
                },
                updateRowData: {
                    key: "updateRowData",
                    relyInit: !0,
                    title: "更新指定行所使用的数据",
                    code: `GridManager.updateRowData('${gridManagerName}', 'id', {id: 112, title: 'ccc'});`
                },
                updateTreeState: {
                    key: "updateTreeState",
                    relyInit: !0,
                    title: "更新树的展开状态",
                    code: `GridManager.updateTreeState('${gridManagerName}', true);`
                },
                setSort: {
                    key: "setSort",
                    relyInit: !0,
                    title: "手动设置排序",
                    code: `GridManager.setSort('${gridManagerName}', {createDate: 'ASC'});`
                },
                setConfigVisible: {
                    key: "setConfigVisible",
                    relyInit: !0,
                    title: "设置表头配置区域可视状态",
                    code: `GridManager.setConfigVisible('${gridManagerName}', true);`
                },
                setLineHeight: {
                    key: "setLineHeight",
                    relyInit: !0,
                    title: "配置行的高度",
                    code: `GridManager.setLineHeight('${gridManagerName}', '70px');`
                },
                showTh: {
                    key: "showTh",
                    relyInit: !0,
                    title: "设置列为可视状态",
                    code: `GridManager.showTh('${gridManagerName}', 'pic');`
                },
                hideTh: {
                    key: "hideTh",
                    relyInit: !0,
                    title: "设置列为隐藏状态",
                    code: `GridManager.hideTh('${gridManagerName}', 'pic');`
                },
                exportGrid: {
                    key: "exportGrid",
                    relyInit: !0,
                    title: "导出指定表格",
                    code: `GridManager.exportGrid('${gridManagerName}', 'demo中使用的导出').then(res=>{console.log('success')}).catch(err=>{console.error('error', err)});`
                },
                setQuery: {
                    key: "setQuery",
                    relyInit: !0,
                    title: "更改在生成组件时所配置的参数query",
                    code: `GridManager.setQuery('${gridManagerName}', {'userName':'baukh','sex':'男'});`
                },
                setAjaxData: {
                    key: "setAjaxData",
                    relyInit: !0,
                    title: "用于再次配置ajaxData数据",
                    code: `GridManager.setAjaxData('${gridManagerName}', {data: [{title: '通过setAjaxData动态添加的数据，其它项为空'}], totals: 1});`
                },
                refreshGrid: {
                    key: "refreshGrid",
                    relyInit: !0,
                    title: "刷新表格",
                    code: `GridManager.refreshGrid('${gridManagerName}');`
                },
                renderGrid: {
                    key: "renderGrid",
                    relyInit: !0,
                    title: "渲染表格",
                    code: `GridManager.renderGrid('${gridManagerName}');`
                },
                getCheckedTr: {
                    key: "getCheckedTr",
                    relyInit: !0,
                    title: "获取当前选中的行",
                    code: `GridManager.getCheckedTr('${gridManagerName}');`
                },
                getCheckedData: {
                    key: "getCheckedData",
                    relyInit: !0,
                    title: "获取选中行的渲染数据",
                    code: `GridManager.getCheckedData('${gridManagerName}');`
                },
                setCheckedData: {
                    key: "setCheckedData",
                    relyInit: !0,
                    title: "设置选中的数据",
                    code: `GridManager.setCheckedData('${gridManagerName}', [GridManager.getTableData('${gridManagerName}')[1]]);`
                },
                cleanData: {
                    key: "cleanData",
                    relyInit: !0,
                    title: "清除指定表格数据",
                    code: `GridManager.cleanData('${gridManagerName}');`
                },
                print: {key: "print", relyInit: !0, title: "打印当前页", code: `GridManager.print('${gridManagerName}');`},
                showRow: {
                    key: "showRow",
                    relyInit: !0,
                    title: "显示隐藏行",
                    code: `GridManager.showRow('${gridManagerName}', 1);`
                },
                hideRow: {
                    key: "hideRow",
                    relyInit: !0,
                    title: "隐藏行",
                    code: `GridManager.hideRow('${gridManagerName}', 1);`
                },
                showLoading: {
                    key: "showLoading",
                    relyInit: !0,
                    title: "显示加载中",
                    code: `GridManager.showLoading('${gridManagerName}');`
                },
                hideLoading: {
                    key: "hideLoading",
                    relyInit: !0,
                    title: "隐藏加载中",
                    code: `GridManager.hideLoading('${gridManagerName}', 300);`
                },
                destroy: {
                    key: "destroy",
                    relyInit: !0,
                    title: "消毁指定的GridManager实例",
                    code: `GridManager.destroy('${gridManagerName}');`
                }
            }, arg = {
                gridManagerName: "test",
                width: "100%",
                height: "100%",
                autoOrderConfig: {fixed: "left"},
                checkboxConfig: {key: "id", fixed: "left"},
                supportAjaxPage: !0,
                sortMode: "single",
                supportMenu: !0,
                menuHandler: e => (e.unshift({
                    content: "自定义菜单", line: !0, onClick: e => {
                        alert(e)
                    }
                }), e),
                useCellFocus: !0,
                useHideRow: !0,
                supportMoveRow: !0,
                moveRowConfig: {
                    key: "priority", useSingleMode: !0, fixed: "left", handler: (e, t) => {
                        console.log(e, t)
                    }
                },
                disableCache: !1,
                ajaxData: function (e, t) {
                    var local_host = window.location.host;          // 获取当前IP
                    return "/medical-ethics/TopicRegistrationExport.html"
                },
                exportConfig: {
                    fileName: e => {
                        const t = new Date;
                        let a = `${t.getFullYear()}-${t.getMonth() + 1}-${t.getDate()}`;
                        for (let t in e) a = `${a}-${t}=${e[t]}`;
                        return a
                    }, suffix: "xls"
                },
                ajaxType: "POST",
                checkedBefore: function (e, t, a) {
                    return console.log("checkedBefore==", e, t, a), a && 90 === a.id && alert("该节点在checkedBefore中配置为不可选"), a && 90 !== a.id
                },
                checkedAfter: function (e, t, a) {
                    console.log("checkedAfter==", e, t, a)
                    id_list = [];
                    for (var j=0; j<e.length; j++){
                        id_list.push(e[j]["id"])
                    }
                },
                checkedAllBefore: function (e, t) {
                    console.log("checkedAllBefore==", e, t)
                },
                checkedAllAfter: function (e, t) {
                    console.log("checkedAllAfter==", e, t)
                    id_list = [];
                    for (var j=0; j<e.length; j++){
                        id_list.push(e[j]["id"])
                    }
                },
                sortingBefore: function (e) {
                    console.log("sortingBefore", e)
                },
                sortingAfter: function (e) {
                    console.log("sortingAfter", e)
                },
                ajaxBeforeSend: function (e) {
                    console.log("ajaxBeforeSend")
                },
                ajaxSuccess: function (e) {
                    console.log("ajaxSuccess")
                },
                ajaxError: function (e) {
                    console.log("ajaxError")
                },
                ajaxComplete: function (e) {
                    console.log("ajaxComplete")
                },
                adjustBefore: e => {
                    console.log("adjustBefore=>", e)
                },
                adjustAfter: e => {
                    console.log("adjustAfter=>", e)
                },
                responseHandler: e => (e.data.forEach((e => {
                    e.priority = e.id
                })), e),
                rowRenderHandler: (e, t) => e,
                emptyTemplate: e => `<div style="text-align: center;">${e.query.title ? "搜索为空" : "暂无数据"}</div>`,
                columnData: [
                    {
                        key: "meeting_number",
                        text: "会议次数",
                        align: "center",
                        width: '250px'
                    }, {
                        key: "meeting_date",
                        text: "会议日期",
                        align: "center",
                    }, {
                        key: "topic_name",
                        text: "议题名称",
                        align: "left",
                    }, {
                        key: "price_dean_meeting",
                        text: "是否提交办公会第几次院长办公会",
                        align: "center",
                    }, {
                        key: "submit_department",
                        text: "提交科室",
                        align: "center",
                    }, {
                        key: "topic_number",
                        text: "议题编号",
                        align: "center",
                    }]
            }, demo1 = {
                initSearch: function () {
                }, initFN: () => {
                    document.querySelector(".search-action").addEventListener("click", (function () {
                        var search_start_time = document.getElementById("startTime").value.split(" ")[0];
                        var search_end_time = document.getElementById("endTime").value.split(" ")[0];
                        var e = {
                            search_start_time: search_start_time,
                            search_end_time: search_end_time,
                        };
                        table.GM("setQuery", e, (function () {
                            console.log("setQuery执行成功")
                        }))
                    }))
                }, initGM: function () {
                    new window.GridManager(table, arg, (e => {
                        console.log("渲染完成后的回调函数:", e), console.log(arg.columnData)
                    }))
                }, editRowData: function (e) {
                    window.GridManager.updateRowData("test", "id", {
                        id: window.parseInt(e.getAttribute("data-id")),
                        lastDate: (new Date).getTime()
                    })
                }
            }, table = document.querySelector("#main_table");
        demo1.initSearch(table), demo1.initGM(table), demo1.initFN();

        var fastTime = {
            true: {
                4: { // 双日历天、小时的快速选择格式
                    '最近1天': { startTime: moment().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近7天': { startTime: moment().subtract(7, 'day').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近一个月': { startTime: moment().subtract(1, 'month').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近三个月': { startTime: moment().subtract(3, 'month').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') }
                },
                5: { // 双日历天、小时的快速选择格式
                    '最近1天': { startTime: moment().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近7天': { startTime: moment().subtract(7, 'day').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近一个月': { startTime: moment().subtract(1, 'month').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') },
                    '最近三个月': { startTime: moment().subtract(3, 'month').format('YYYY-MM-DD 00:00:00'), endTime: moment().format('YYYY-MM-DD 00:00:00') }
                },
                6: { // 双日历周的快速选择格式
                    '本周': { startTime: moment().startOf('week').subtract(0, 'week').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('week').format('YYYY-MM-DD HH:mm:ss') },
                    '最近2周': { startTime: moment().startOf('week').subtract(2, 'week').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('week').format('YYYY-MM-DD HH:mm:ss') },
                    '最近4周': { startTime: moment().startOf('week').subtract(4, 'week').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('week').format('YYYY-MM-DD HH:mm:ss') },
                    '最近8周': { startTime: moment().startOf('week').subtract(8, 'week').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('week').format('YYYY-MM-DD HH:mm:ss') },
                },
                7: { // 双日历月的快速选择格式
                    "本月": { startTime: moment().startOf('month').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('month').format('YYYY-MM-DD HH:mm:ss')},
                    "本年": { startTime: moment().startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('month').format('YYYY-MM-DD HH:mm:ss')},
                    "最近六个月": { startTime: moment().startOf('month').subtract(6, 'month').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('month').format('YYYY-MM-DD HH:mm:ss')}
                },
                8:{ // 双日历季的快速选择格式
                    "本季度": { startTime: moment().startOf('quarter').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('quarter').format('YYYY-MM-DD HH:mm:ss')},
                    "今年至今": { startTime: moment().startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('quarter').format('YYYY-MM-DD HH:mm:ss')},
                    "上一季度": { startTime: moment().subtract(1, 'quarter').startOf('quarter').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().subtract(1, 'quarter').endOf('quarter').format('YYYY-MM-DD HH:mm:ss')}
                },
                9: { // 双日历年的快速选择格式
                    "今年": { startTime: moment().startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('year').format('YYYY-MM-DD HH:mm:ss')},
                    "近一年": { startTime: moment().subtract(1, 'year').startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('year').format('YYYY-MM-DD HH:mm:ss')},
                    "近二年": { startTime: moment().subtract(2, 'year').startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('year').format('YYYY-MM-DD HH:mm:ss')},
                    "近十一年": { startTime: moment().subtract(11, 'year').startOf('year').format('YYYY-MM-DD HH:mm:ss'), endTime: moment().endOf('year').format('YYYY-MM-DD HH:mm:ss')}
                }
            },
            false: {
                    4: {  // 单日历天和小时的快速时间选择格式
                        '今天': { startTime: moment().format('YYYY-MM-DD HH:mm:ss') },
                        '昨天': { startTime: moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss') },
                        '一周前': { startTime: moment().subtract(7, 'day').format('YYYY-MM-DD HH:mm:ss') },
                    },
                    5: {  // 单日历天和小时的快速时间选择格式
                        '今天': { startTime: moment().format('YYYY-MM-DD HH:mm:ss') },
                        '昨天': { startTime: moment().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss') },
                        '一周前': { startTime: moment().subtract(7, 'day').format('YYYY-MM-DD HH:mm:ss') },
                    },
                    6: { // 单日历周的快速选择格式
                        '本周': { startTime: moment().startOf('week').subtract(0, 'week').format('YYYY-MM-DD HH:mm:ss')},
                        '上一周': { startTime: moment().startOf('week').subtract(1, 'week').format('YYYY-MM-DD HH:mm:ss')},
                        '上二周': { startTime: moment().startOf('week').subtract(2, 'week').format('YYYY-MM-DD HH:mm:ss')},
                    },
                    7: {  // 单选日历月的快速时间选择格式
                        '当前月': { startTime: moment().startOf('month').format('YYYY-MM-DD HH:mm:ss') },
                        '一个月前': { startTime: moment().startOf('month').subtract(1, 'month').format('YYYY-MM-DD HH:mm:ss') },
                        '半年前': { startTime: moment().startOf('month').subtract(6, 'month').format('YYYY-MM-DD HH:mm:ss') },
                        '一年前': { startTime: moment().startOf('month').subtract(12, 'month').format('YYYY-MM-DD HH:mm:ss') },
                    },
                    8: {  // 单选日历季的快速时间选择格式
                        '本季度': { startTime: moment().startOf('quarter').format('YYYY-MM-DD HH:mm:ss') },
                        '上一季度': { startTime: moment().startOf('quarter').subtract(1, 'quarter').format('YYYY-MM-DD HH:mm:ss') },
                        '上二季度': { startTime: moment().startOf('quarter').subtract(2, 'quarter').format('YYYY-MM-DD HH:mm:ss') },
                    },
                    9: {  // 单选日历年的快速时间选择格式
                        '今年': { startTime: moment().startOf('year').format('YYYY-MM-DD HH:mm:ss') },
                        '去年': { startTime: moment().startOf('year').subtract(1, 'year').format('YYYY-MM-DD HH:mm:ss') },
                        '前年': { startTime: moment().startOf('year').subtract(2, 'year').format('YYYY-MM-DD HH:mm:ss') },
                    },
            }

        }
    </script>
{% endblock %}
